import request from "@/utils/request"

export default{
    //上传图片
    uploadImg(data={}){
        return request({
            url:`/article/file/upload`,
            method:"post",
            data:data
        })
    },
    //删除图片
    deleteImg(imgeUrl){
        return request({
            url:`/article/file/delete`,
            method:"delete",
            params:{'fileUrl':imgeUrl}
        })
    },

}